package com.my.hotel.mapper;

import com.my.hotel.entity.EvaReply;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface EvaReplyMapper {

    @Insert("insert into tb_eva_reply values(null,#{evaId},#{replyContent},#{replyTime})")
    public void eva_reply(EvaReply evaReply);

    //对回评进行添加查询条件为evaId
    @Select("select * from tb_eva_reply where eva_id=#{evaId}")
    public List<EvaReply> selectEvaReplyByEvaId(long evaId);


}
